package com.aviation.sell_ticket.tool;

public enum ResultEnum {

    UNKNOWN_ERROR(-1,"未知错误"),
    SUCCESS(200,"成功"),
    USER_NOT_EXIST(204,"用户不存在"),
    USER_IS_EXISTS(203,"用户已存在"),
    DATA_IS_NULL(205,"数据提交不完整"),
    ILLEGAL_REQUEST_KQ(401,"非法操作"),
    ILLEGAL_REQUEST(403,"登陆失效，请重新登录"),
    UNUSUAL(500,"服务器异常"),
    LOGON_HAS_FAILED(601,"注册失败"),
    REPEATED_TRANSMISSION(602,"请勿重复发送验证码"),
    PASSWORD_ERROR(603,"登录失败，请检查账号或密码是否正确"),
    CHANGE_PASSWORD_HAS_FAILED(604,"修改密码失败"),
    MAILBOX_ERROR(700,"邮箱地址不正确"),
    INVALID_VERIFICATION_CODE(701,"验证码无效"),
    INVALID_PHONE_NUMBER(702,"手机格式不正确"),
    INVALID_PASSWORD(703,"密码不正确，密码为8-16位，并且包含字母数字特殊字符"),
    FORCED_RETURN(704,"用户以在别处登录，如果非您本人操作，请尽快修改密码"),
    MISSING_QUERY_INFORMATION(705,"查询必要信息缺失"),
    NOT_THE_CORRECT_QUERY_CRITERIA(706,"不是正确的查询条件"),
    THE_TIME_SHOULD_BE_TODAY_OR_LATER(707,"时间应该是今天或更晚"),
    BUSY_SERVICE(708,"服务繁忙，请稍后重试"),
    ID_CARD_ERROR(709,"身份证号码不正确"),
    NAME_ERROR(710,"姓名不能为空"),
    THEMOBILE_PHONE_NUMBER_IS_INCORRECT(711,"手机号码不正确"),
    FLIGHT_NULL_ERROR(713,"航班信息异常"),
    PASSENGER_NULL_ERROR(714,"乘客信息异常"),
    NO_SEATS_AVAILABLE(720,"抱歉，当日机票已售完"),
    INSUFFICIENT_REMAINING_TICKETS(721,"余票不足，请重新查询机票信息"),
    NO_SUCH_FILGHT_OR_NO_ITINREARY_AVAILABLE_TODAY(722,"今天没有此类航班或行程"),
    THERE_ARE_NO_SUCH_ORDERS(730,"没有这样的订单"),
    ORDER_EXCEPTION(420,"订单信息异常"),
    ABNORMAL_ORDER_MODIFICATION(421,"订单修改异常"),
    SERVER_BUSY(531,"服务器繁忙，请稍后再试"),
    ORDER_DOESS_NOT_ALLOW_PAYMENT(731,"当前订单不允许支付"),
    THE_TWO_PASSWORD_DO_NOT_MATCH(732,"两次密码输入不一致"),
    THE_PASSWORD_IS_INCORRECT(733,"当前登录密码不正确"),
    THE_CURRENT_ORDER_DOES_NOT_SUPPORT_REFUNDS(740,"超过退票时间"),
    REFUND_FALED(741,"退款失败"),
    THE_END_TIME_SHOULD_BE_BEFORE_THE_DEPARTURE_TIME(742,"结束时间应该在出发时间之前"),
    PASSENGER_INFORMATION_UPPER_LIMIT(743,"乘客信息以达到上限"),
    ADDING_THE_SAME_PASSENGER_IS_NOT_ALLOWED(744,"不允许添加相同乘客"),
    FAILED_TO_ADD_PASSENGER_INFORMATION(745,"添加乘客信息失败"),
    FAILED_TO_DELETE_PASSENGER_INFORMATION(746,"删除乘客信息失败")
    ;
    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
